//
// Created by 王乐 on 2022/2/16.
//

#ifndef LESTE_LECUBICSUBBOXBEHAVIOUR_H
#define LESTE_LECUBICSUBBOXBEHAVIOUR_H

#include "LeBehaviour.h"

enum CubicSubBoxMode
{
    CSBNORM,
    CSBCHANGING
};

class LeCameraCADBehaviour;

class LeCubicSubBoxBehaviour : public LeBehaviour
{
public:
    LeCubicSubBoxBehaviour();

    virtual ~LeCubicSubBoxBehaviour();

    void Start() override;

    void Update() override;

private:
    void processNorm();
    void processChanging();

private:
    CubicSubBoxMode m_Mode;
    unsigned int m_CurID;
    LeCameraCADBehaviour* m_pCameraBehaviour;

    float m_ChangingMaxTime;
    float m_CurChangingTime;

    float m_ChangeRatio;
};


#endif //LESTE_LECUBICSUBBOXBEHAVIOUR_H
